package com.briup.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.briup.reggie.common.R;
import com.briup.reggie.entity.AddressBook;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

public interface AddressBookService extends IService<AddressBook> {
    /**
     * 设置默认地址
     * @param addressBook
     * @return
     */
    public AddressBook setDefault(AddressBook addressBook);

    /**
     * 查询全部地址
     * @param addressBook
     * @return
     */
    public List<AddressBook> list(AddressBook addressBook);

    /**
     * 查询默认地址
     * @return
     */
    public AddressBook getDefault();

    /**
     * 删除地址
     * @param ids
     * @return
     */
    public void deleteById(Long ids);
}
